<?php
namespace App\Utils\Other\PushOrder\Orders;

use App\Utils\Http\Request;
use App\Utils\Other\PushOrder\PushOrder;
use function Hyperf\Support\make;

/**
 * 快照
 * @author zx
 * @package other\pushorder\orders
 */
Class Snapshot extends PushOrder
{
    /**
     * 发货
     * @param $params
     * @return mixed
     */
    public function push($params)
    {
        $path = 'order/snapshotStorage';
        /** @var Request $http */
        $http = make(Request::class);
        $response = $http->post(
            $this->getUrl($path),
            $params,
            true
        );
        logs($response);
        $response = json_decode($response, true);
        return $this->response($response);
    }
}